class AssertUtil:
    # 断言封装
    @classmethod
    def ihrm_assert(cls, login_resp, status_code, success, code, message):
        assert status_code == login_resp.status_code
        assert success == login_resp.json().get("success")
        assert code == login_resp.json().get("code")
        assert message == login_resp.json().get("message")

    # 断言封装
    @classmethod
    def tpshop_assert(cls, login_resp, status_code, status, mag):
        assert status_code == login_resp.status_code
        assert status == login_resp.json().get("status")
        assert mag == login_resp.json().get("mag")
